<?php
	$sql = "SELECT * FROM `control_acl` INNER JOIN `control_mod` WHERE `control_acl`.`mod_id` = `control_mod`.`mod_id` AND `control_acl`.`user_id` = '$ss_user_id' ORDER BY `control_mod`.`order`";
	$query = mysql_query($sql);
	$tp->block('dashboard');
	while($result = mysql_fetch_assoc($query)) {
		$name	= $result['name'];
		$url	= $result['url'];
		$image	= $result['image'];
		$tp->apply();
	}
	mysql_free_result($query);
?>